package com.woniu.user;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.EnableScheduling;


/**
 * @author Ma.Lei
 * @description
 * @date 2023/2/6 13:15
 */
@SpringBootApplication(scanBasePackages = { "com.woniu.user.**","com.woniu.**"})
@MapperScan(basePackages = "com.woniu.*.mapper")
@EnableFeignClients(basePackages = "com.woniu.*.feign")
@EnableScheduling //通过@EnableScheduling注解开启对计划任务的支持
@EnableCaching
public class UserApplication {
    public static void main(String[] args) {
        SpringApplication.run(UserApplication.class, args);
    }
}
